[IA64] change XEN_DOMCTL_getmemlist to return gmfn instead of mfn
authorawilliam@xenbuild2.aw <awilliam@xenbuild2.aw>
Fri, 8 Dec 2006 16:32:15 +0000 (09:32 -0700)
committerawilliam@xenbuild2.aw <awilliam@xenbuild2.aw>
Fri, 8 Dec 2006 16:32:15 +0000 (09:32 -0700)
This patch tries to get 'xm dump-core' work on ia64 again.
With this patch, 'xm dump-core' results in creating core-dump file
as before with a slight format changes.
(machine address array -> pseudo physicall address array)
However xm dump-core has been broken on ia64 since
XEN_DOMCTL_getmemlist/ia64 is differenct from x86's.
This patch does NOT fix it.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
xen/arch/ia64/xen/dom0_ops.c

index 472f03dc54ae1269af6ed303575f03fc4956755e..e0aaff58d6a6486126faa9e118be1bd4e90cd32b 100644 (file)
@@ -55,7 +55,7 @@ long arch_do_domctl(xen_domctl_t *op, XEN_GUEST_HANDLE(xen_domctl_t) u_domctl)
             pte = (pte_t *)lookup_noalloc_domain_pte(d,
                                                (start_page + i) << PAGE_SHIFT);
             if (pte && pte_present(*pte))
-                mfn = pte_pfn(*pte);
+                mfn = start_page + i;
             else
                 mfn = INVALID_MFN;